package lhdx8;

public class Hamster extends Pet {
    public Hamster(String name, String variety, int weight, int e) {
        super(name, variety, weight, e);
    }
    public void print(){
        super.print();
    }
    public void yao(){
        System.out.println("仓鼠"+getName()+"会啃桌腿！");
    }
}
